<template>
  <div>
    <!--头部-->
    <base-info ref="baseInfo" v-if="checkPermi(['merchant:statistics:home:index'])" />
    <!--小方块-->
    <grid-menu class="mb20" />
    <!-- 商品浏览量排行榜 -->
    <ranking ref="ranking"></ranking>
  </div>
</template>

<script>
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import baseInfo from './components/baseInfo';
import ranking from './components/ranking';
import gridMenu from './components/gridMenu';
import { checkPermi } from '@/utils/permission'; // 权限判断函数
export default {
  name: 'Dashboard',
  components: { baseInfo, gridMenu, ranking },
  methods: {
    checkPermi,
  },
};
</script>
